package cn.tedu.mybatisdb3.mapper;

import cn.tedu.mybatisdb3.entity.Product;
import cn.tedu.mybatisdb3.vo.ProductVO1;
import cn.tedu.mybatisdb3.vo.ProductVO2;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    void insertProduct(Product product);
    ProductVO1 selectProductVO1ById(Long id);
    List<ProductVO2> selectProductVO2(Long id);
    int deleteProductById(Long id);
    int updateProductById(Product product);
    int deleteProductByIds1(List<Integer> ids);
    int updatedProductByIds1(Product product);
    int countProduct();
}
